<%@ page contentType="text/html; charset=iso-8859-1" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
<%@ include file="../inc/topo.jsp" %>
	<div id="breadcrumb">
		<s:text name="label.breadcrumb" />
		<a href="listarLog.action"><s:text name="log.nome" /></a>
	</div>
	<br/><h1><s:text name="label.listaDe" /><s:text name="log.nome" /></h1>
	<br/><s:set name="list" value="listArquivoLog" scope="request" />
	<s:url id="apagarLog" action="apagarLog" />
	<s:a href="%{apagarLog}"><b><s:text name="label.apagar.log" /></b></s:a>	
	<br/>
	<br/>
	<s:text name="label.aviso.log" />
	<br/>
	<br/>
	<s:form action="listarLog" method="get">
		<div>
			<div class="TbLEdit_row">
				<label for="no_usuario"><s:text name="usuario.nome" /></label>
				<s:textfield name="no_usuario" id="no_usuario" />
			</div>
			<div class="TbLEdit_row">
				<label for="logMensagem">Mensagem</label>
				<s:textfield name="logMensagem" id="logMensagem" />
			</div>
			<div class="TbLEdit_row">
				<label for="dataInicio">Data de in&iacute;cio:</label>
				<s:datetimepicker name="dataInicio" id="dataInicio" displayFormat="dd/MM/yyyy" />
				<noscript><div><s:textfield name="dataFim" id="dataFim" /></div></noscript>
			</div>
			<div class="TbLEdit_row">
				<label for="dataFim">Data de Fim:</label>
				<s:datetimepicker name="dataFim" id="dataFim" displayFormat="dd/MM/yyyy" />
				<noscript><div><s:textfield name="dataFim" id="dataFim" /></div></noscript>
			</div>
			<div class="TbLEdit_btns">				
				<s:submit name="btnBuscar" value="Buscar" />
				<br /><br />
			</div>
		</div>
	</s:form>
	<div class="TbLEdit_Form">
		<%@ include file="../inc/mensagens.jsp" %>
		<c:set var="usuario"><s:text name="usuario.nome" /></c:set>
		<display:table name="list" id="row" requestURI="listarLog.action" pagesize="100">
			<display:column property="data" title="Data e hora" />
			<display:column property="usuario.noUsuario" title="${usuario}" />
			<display:column property="usuario.coUsuario" title="Login" />
			<display:column property="mensagem" title="Mensagem" />
		</display:table> 
	</div>
	<jsp:include page="../inc/final.jsp" />
